import request from '@/utils/request'

export function getType(data) {
  return request({
    url: '/api/v1/advertising/type',
    method: 'get',
    data
  })
}

export function getPosition(data) {
  return request({
    url: '/api/v1/advertising/position',
    method: 'get',
    data
  })
}

export function getDetail(data) {
  return request({
    url: '/api/v1/advertising/detail',
    method: 'post',
    data
  })
}

export function getList() {
  return request({
    url: '/api/v1/advertising/getList',
    method: 'get'
  })
}

export function getPagingList(data) {
  return request({
    url: '/api/v1/advertising/getPagingList',
    method: 'post',
    data
  })
}

export function advertisingSave(data) {
  return request({
    url: '/api/v1/advertising/store',
    method: 'post',
    data
  })
}

export function review(data) {
  return request({
    url: '/api/v1/advertising/review',
    method: 'post',
    data
  })
}

